package com.sajus.billing.client.dto;

import java.io.Serializable;
import java.util.Date;

public class UsageDataDTO implements Serializable {
	
	private String tableName;
	private String columnName;
	private String id;
	
	private Double charge;
	private Date chargeDate;
	private String rateKey;
	
	private String phoneNum;
	private String numberCalled;
	private Date usageDate;
	private Date usageTime;
	private Double usage;
	
	
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public String getColumnName() {
		return columnName;
	}
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Double getCharge() {
		return charge;
	}
	public void setCharge(Double charge) {
		this.charge = charge;
	}
	public Date getChargeDate() {
		return chargeDate;
	}
	public void setChargeDate(Date chargeDate) {
		this.chargeDate = chargeDate;
	}
	public String getRateKey() {
		return rateKey;
	}
	public void setRateKey(String rateKey) {
		this.rateKey = rateKey;
	}
	public String getPhoneNum() {
		return phoneNum;
	}
	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}
	public String getNumberCalled() {
		return numberCalled;
	}
	public void setNumberCalled(String numberCalled) {
		this.numberCalled = numberCalled;
	}
	public Date getUsageDate() {
		return usageDate;
	}
	public void setUsageDate(Date usageDate) {
		this.usageDate = usageDate;
	}
	public Date getUsageTime() {
		return usageTime;
	}
	public void setUsageTime(Date usageTime) {
		this.usageTime = usageTime;
	}
	public Double getUsage() {
		if (usage == null ){
			return 1d;
		}
		return usage;
	}
	public void setUsage(Double usage) {
		this.usage = usage;
	}
	
}
